package com.maiji.cloud.response;

import io.swagger.models.auth.In;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@NoArgsConstructor
@Data
@Accessors(chain=true)
public class ResMetaData {

    private Integer page = 1;  // 查询页码
    private Integer size = 10;  // 每页条数
    private Long total = 0L;  // 总条数

    public ResMetaData(Integer page, Integer size, Long total) {
        this.page = page;
        this.size = size;
        this.total = total;
    }

    public ResMetaData(Integer page, Integer size, Integer total) {
        this.page = page;
        this.size = size;
        this.total = total.longValue();
    }

}
